<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 部门创建 -->
<title>department_create</title>
<script type="text/javascript" src="<%=request.getContextPath() %>/assets/scripts/jquery-1.9.1.js"></script>

<link type="text/css" href="<%=request.getContextPath() %>/assets/style/admin.css" rel="stylesheet" />
</head>
<body>
<div class="page">
	<h1>department edit</h1>
	<s:form action="department.action" method="post" id="depForm" theme="simple">
		<s:hidden name="_method" value="%{resourceMethod}" />
		<s:hidden name="id" value="%{resourceId}" />
		<s:label name="departmentName" value="department name" />
		<s:textfield name="departmentName" value="%{department.name}" />
		
		<s:a href="javascript:submit();">submit</s:a>
		
	</s:form>
	<script type="text/javascript">
		function submit() {
			
			$("#depForm").submit();
		}
	</script>
</div>
</body>
</html>

